﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;

namespace Oplug.EntityFramework.RossLive
{
    [Table("Tasks")]
    public class Tasks : IEntity<long>
    {
        public long ID { get; set; }
        [Required]
        [StringLength(50)]
        public string Title { get; set; }
        public string Contents { get; set; }
        [StringLength(4)]
        public string Status { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime? EndTime { get; set; }
        public DateTime? CompleteTime { get; set; }
        public bool IsMilepost { get; set; }
        public bool IsComplete { get; set; }
        public int LeaderId { get; set; }
        public int UserId { get; set; }
        public int ParentId { get; set; }
        public int EmgGrade { get; set; }
    }
}
